package com.gxc.controller;

import com.gxc.utils.RestControllerResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 测试Aspect拦截Controller.
 *
 * @author 宫新程
 * @since 2018/12/14 2:33 PM
 */
@Controller
public class AspectController {

  /** 测试Aspect拦截Controller. */
  @GetMapping("/aspect")
  @ResponseBody
  public RestControllerResult<Boolean> aspect() {
    RestControllerResult<Boolean> result = new RestControllerResult<>();
    System.out.println("AspectController_aspect()_方法执行....");
    result.setSuccess(true);
    result.setData(true);
    return result;
  }
}
